-- card: 4049 from stack: in -- bmap block id: 4448 -- flags: 4000 -- background id: 2609 -- name: Mac School¨ Shell ----- HyperTalk script ----- on openCard global interactiveDemo installMenuBar 1000,1001,1002 put true into interactiveDemo end openCard on doMenu menuItem if menuItem contains "About" then lock screen restoreMenuBar visual iris open go to card short name of me of background "About" unlock screen with iris open else if menuItem is "Home" then restoreMenuBar visual zoom close go home else if menuItem is "Rebuild Shell…" then rebuildShell else if menuItem is "Quit" then restoreMenuBar visual zoom close go to card "Demo Shell" end if end doMenu on mouseUp if name of target contains "button" then lock screen if the optionKey is down then restoreMenuBar false go to background short name of target if the result is "No such card" then installMenuBar 1000,1001,1002 beep else unlock screen with zoom open else restoreMenuBar go to card short name of target in background "About" unlock screen with iris open end if end if end mouseUp on rebuildShell lock screen set the cursor to watch repeat with index = 1 to 24 hide card button index end repeat unlock screen if the optionKey is down then put "School Setup" & return & "Student Details" & return & "Course Details" & return & "Teacher Details" & return & "CSL Scheduler" & return & "Report Cards" & return & "CSL Attendance" & return & "CSL Library" & return & "Report Manager" & return & "CSL Marks" & return & "Comment Editor" & return & "Year End" & return & "Next Year Prep" & return & "CSL Backup" & return & "ASCII Transfer" & return & "CSL Scanning" & return & "Query" into temp else put empty into temp repeat with index = 1 to 24 get short name of card button index if "button" is not in it then put it into line the number of lines of temp + 1 of temp end repeat repeat with i = the number of lines of temp down to 2 repeat with j = 1 to i - 1 if line j of temp > line j + 1 of temp then put line j of temp into k put line j + 1 of temp into line j of temp put k into line j + 1 of temp end if end repeat end repeat end if repeat with index = 1 to the number of lines of temp set name of card button index to line index of temp set icon of card button index to line index of temp show card button index end repeat end rebuildShell -- part 1 (button) -- low flags: 00 -- high flags: A004 -- rect: left=10 top=81 right=129 bottom=86 -- title width / last selected line: 0 -- icon id / first selected line: 5016 / 5016 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: School Setup -- part 2 (button) -- low flags: 00 -- high flags: A004 -- rect: left=93 top=81 right=129 bottom=169 -- title width / last selected line: 0 -- icon id / first selected line: 5017 / 5017 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Student Details -- part 3 (button) -- low flags: 00 -- high flags: A004 -- rect: left=176 top=81 right=129 bottom=252 -- title width / last selected line: 0 -- icon id / first selected line: 5005 / 5005 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Course Details -- part 4 (button) -- low flags: 00 -- high flags: A004 -- rect: left=259 top=81 right=129 bottom=335 -- title width / last selected line: 0 -- icon id / first selected line: 5018 / 5018 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Teacher Details -- part 5 (button) -- low flags: 00 -- high flags: A004 -- rect: left=342 top=81 right=129 bottom=418 -- title width / last selected line: 0 -- icon id / first selected line: 5015 / 5015 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Scheduler -- part 6 (button) -- low flags: 00 -- high flags: A004 -- rect: left=425 top=81 right=129 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 5012 / 5012 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Report Cards -- part 7 (button) -- low flags: 00 -- high flags: A004 -- rect: left=10 top=136 right=184 bottom=86 -- title width / last selected line: 0 -- icon id / first selected line: 5002 / 5002 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Attendance -- part 8 (button) -- low flags: 00 -- high flags: A004 -- rect: left=93 top=136 right=184 bottom=169 -- title width / last selected line: 0 -- icon id / first selected line: 5008 / 5008 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Library -- part 9 (button) -- low flags: 00 -- high flags: A004 -- rect: left=176 top=136 right=184 bottom=252 -- title width / last selected line: 0 -- icon id / first selected line: 5013 / 5013 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Report Manager -- part 10 (button) -- low flags: 00 -- high flags: A004 -- rect: left=259 top=136 right=184 bottom=335 -- title width / last selected line: 0 -- icon id / first selected line: 5009 / 5009 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Marks -- part 11 (button) -- low flags: 00 -- high flags: A004 -- rect: left=342 top=136 right=184 bottom=418 -- title width / last selected line: 0 -- icon id / first selected line: 5004 / 5004 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Comment Editor -- part 12 (button) -- low flags: 00 -- high flags: A004 -- rect: left=425 top=136 right=184 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 5020 / 5020 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Year End -- part 13 (button) -- low flags: 00 -- high flags: A004 -- rect: left=10 top=191 right=239 bottom=86 -- title width / last selected line: 0 -- icon id / first selected line: 5010 / 5010 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Next Year Prep -- part 14 (button) -- low flags: 00 -- high flags: A004 -- rect: left=93 top=191 right=239 bottom=169 -- title width / last selected line: 0 -- icon id / first selected line: 5003 / 5003 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Backup -- part 15 (button) -- low flags: 00 -- high flags: A004 -- rect: left=176 top=191 right=239 bottom=252 -- title width / last selected line: 0 -- icon id / first selected line: 5001 / 5001 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: ASCII Transfer -- part 16 (button) -- low flags: 00 -- high flags: A004 -- rect: left=259 top=191 right=239 bottom=335 -- title width / last selected line: 0 -- icon id / first selected line: 5014 / 5014 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: CSL Scanning -- part 17 (button) -- low flags: 00 -- high flags: A004 -- rect: left=342 top=191 right=239 bottom=418 -- title width / last selected line: 0 -- icon id / first selected line: 5011 / 5011 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Query -- part 18 (button) -- low flags: 80 -- high flags: A004 -- rect: left=425 top=191 right=239 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 19 (button) -- low flags: 80 -- high flags: A004 -- rect: left=10 top=246 right=294 bottom=86 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 20 (button) -- low flags: 80 -- high flags: A004 -- rect: left=93 top=246 right=294 bottom=169 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 21 (button) -- low flags: 80 -- high flags: A004 -- rect: left=176 top=246 right=294 bottom=252 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 22 (button) -- low flags: 80 -- high flags: A004 -- rect: left=259 top=246 right=294 bottom=335 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 23 (button) -- low flags: 80 -- high flags: A004 -- rect: left=342 top=246 right=294 bottom=418 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 24 (button) -- low flags: 80 -- high flags: A004 -- rect: left=425 top=246 right=294 bottom=501 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: -- part 25 (button) -- low flags: 00 -- high flags: A002 -- rect: left=0 top=328 right=342 bottom=256 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Home ----- HyperTalk script ----- on mouseUp restoreMenuBar visual zoom close go home end mouseUp -- part 26 (button) -- low flags: 00 -- high flags: A002 -- rect: left=256 top=328 right=342 bottom=512 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 3 -- text size: 9 -- style flags: 0 -- line height: 12 -- part name: Main Screen ----- HyperTalk script ----- on mouseUp restoreMenuBar visual zoom close go to card "Demo Shell" end mouseUp